package domain;

import java.util.ArrayList;

public class ContactList
{
	ArrayList<Contact> m_clientList = new ArrayList<Contact>();


	public ContactList()
	{
	}

	public void addContact(Contact c)
	{
		m_clientList.add(c);
		/*FileWriter writer;
		try
		{
			writer = new FileWriter("c:/userdata.txt");
			writer.write(c.getRemoteHostName()
					+ System.getProperty("line.separator")
					+ c.getRemoteHostAddress()
					+ System.getProperty("line.separator")
					+ c.getRemoteListeningPort()
					+ System.getProperty("line.separator"));
			writer.close();
		}
		
		catch (IOException e)
		{
			e.printStackTrace();
		}
		*/

	}

	public void deleteContact(Contact c)
	{
		m_clientList.remove(c);

	}

}
